home *** CD-ROM | disk | FTP | other *** search
- on duplicateCast movieFileName, firstCast, lastCast
- set the colorDepth to 8
- open(window movieFileName)
- set gSourceWindow to window 1
- if voidp(firstCast) then
- set firstCast to 1
- end if
- if voidp(lastCast) then
- tell gSourceWindow
- set lastCast to the number of castMembers
- end tell
- end if
- repeat with theCast = firstCast to lastCast
- tell gSourceWindow
- set theCastType to the castType of cast theCast
- end tell
- if theCastType = #bitmap then
- tell gSourceWindow
- set theCastPalette to the palette of cast theCast
- end tell
- puppetPalette(theCastPalette)
- updateStage()
- end if
- tell gSourceWindow
- copyToClipBoard(cast theCast)
- end tell
- pasteClipBoardInto(cast theCast)
- end repeat
- forget(window movieFileName)
- put "Finished! Now duplicate the Score manually."
- end
-
- on duplicateShared movieFileName, firstCast, lastCast
- set the colorDepth to 8
- open(window movieFileName)
- set gSourceWindow to window 1
- put "movie opened"
- if voidp(firstCast) then
- set firstCast to 1
- end if
- if voidp(lastCast) then
- tell gSourceWindow
- set lastCast to the number of castMembers
- end tell
- put "lastCast = ", lastCast
- end if
- repeat with theCast = firstCast to lastCast
- tell gSourceWindow
- set theCastType to the castType of cast theCast
- end tell
- if theCastType <> #empty then
- if theCastType <> #digitalVideo then
- if theCastType = #bitmap then
- tell gSourceWindow
- set theCastPalette to the palette of cast theCast
- end tell
- puppetPalette(theCastPalette)
- updateStage()
- end if
- tell gSourceWindow
- copyToClipBoard(cast theCast)
- end tell
- pasteClipBoardInto(cast theCast)
- end if
- end if
- end repeat
- forget(window movieFileName)
- put "Finished! Now duplicate the Score manually."
- end
-